package com.gugee.ins.common.dal.mapper.dic;

import com.gugee.common.mapper.GugeeMapper;
import com.gugee.ins.common.model.mysql.dic.InsDicCategoryEnum;
import org.apache.ibatis.annotations.Select;



/**
 * ins博主商业分类字典表
 * @author Huangxin
 */
public interface InsDicCategoryEnumMapper extends GugeeMapper<InsDicCategoryEnum> {
    /**
     * 根据枚举获取二级分类
     * @param categoryEnum
     * @return
     */
    @Select("select category from ins_dic_category_enum where category_enum = #{categoryEnum} ")
    String findCategoryByEnum(String categoryEnum);

}
